# Maintainer: Jelle van der Waa <jelle@vdwaa.nl>

_name=zabbix-api
pkgname=python-zabbix-api
pkgver=0.5.5
pkgrel=2
pkgdesc="Python Zabbix API"
arch=(any)
url="https://pypi.org/project/zabbix-api"
license=('LGPL')
depends=('python')
makedepends=('python-setuptools')
source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz)
sha512sums=('4f8c939b9a7caaf94da47975a35726b1a6f37206a9089c8ece9bbfb2ea9cf0879734223f6fbe314c97becf3be1b125a39ca02313cacd165c45e1254879f832ad')

build() {
  cd "$_name-$pkgver"
  python setup.py build
}

package() {
  cd "$_name-$pkgver"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
